package com.example.shushiyunsst.fragment.main.home.recycler.bean;

import java.util.ArrayList;
import java.util.List;

public class EntityWrapper<T extends HomeEntity> implements HomeEntity {

    private int mSpanSiz;

    private int mItemType;

    protected boolean flatList=false;

    private List<T> mList = new ArrayList<>();

    public List<T> getList() {
        if (mList==null) mList = new ArrayList<>();
        return mList;
    }

    public void setList(List<T> mList) {
        this.mList = mList;
    }

    public void setItemType(int mItemType) {
        this.mItemType = mItemType;
    }

    @Override
    public int getSpanSiz() {
        return mSpanSiz;
    }

    @Override
    public void setSpanSiz(int spanSiz) {
        mSpanSiz = spanSiz;
    }

    @Override
    public int getItemType() {
        return mItemType;
    }

    public boolean isFlatList() {
        return flatList;
    }
}
